home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / game / patch / DdlbugHD.lha / Doodlebug / src / lib / refs.i < prev    next >
Text File  |  1997-07-24  |  5KB  |  103 lines

  1.     ; *** Compulsory in the user program
  2.  
  3.     XDEF    _loader            ; the user entrypoint
  4.     XDEF    _user_pbuffer        ; the user relocatable routines
  5.     XDEF    _general_pbuffer    ; the HDStartup relocatable routines
  6.  
  7.     XDEF    _UserPatchRoutines    ; label for user reloc routines
  8.     XDEF    _EndUserPatchRoutines    ; label for end of user reloc routines
  9.  
  10.     ; *** Non-relocated routines. call normally with JSR
  11.     ; *** NEVER call them with JSRGEN: it would crash immediately.
  12.  
  13.     XREF    _CloseAll        ; quit program (while the OS is up)
  14.     XREF    _CloseAllQuiet        ; quit program and close window
  15.     XREF    _LoadDisks        ; load diskfiles
  16.     XREF    _LoadDiskFromName    ; load a disk
  17.     XREF    _LoadDisksIndex        ; load a disk, starting from number D0
  18.     XREF    _LoadFiles        ; load files in the directory
  19.     XREF    _LoadSmallFiles        ; load small files (<D0)
  20.     XREF    _Kick37Test        ; check if Kickstart version <37
  21.     XREF    _KickVerTest        ; check against a given kick version
  22.     XREF    _GetMemFlag        ; returns MEMF_REVERSE flag isf available
  23.     XREF    _FlushCachesSys        ; flush caches using CacheClearU()
  24.     XREF    _Enhance        ; restores everything (caches, display)
  25.     XREF    _Degrade        ; degrades everything
  26.     XREF    _DegradeCpu        ; degrades only CPU related stuff
  27.     XREF    _DegradeGfx        ; degrades only GFX related stuff
  28.     XREF    _TransfRoutines        ; relocates routines on top of memory
  29.     XREF    _SaveOSData        ; saves OS data (mem,CIAs,custom...)
  30.     XREF    _FreezeAll        ; clears all ints, dma...
  31.     XREF    _Display        ; display a string pointed by A1
  32.     XREF    _LoadRNCFile        ; load a RNC file and unpack it
  33.     XREF    _AllocExtMem        ; allocate extension memory
  34.     XREF    _Test1MBChip        ; check against 1MB of chip (at least)
  35.     XREF    _Test2MBChip        ; check against 2MB of chip
  36.     XREF    _Reboot            ; reboots :-)
  37.     XREF    _WaitReturn        ; waits for the user to press return key
  38.  
  39.     ; *** Relocated routines. always call with JSRGEN (see macros.i)
  40.     ; *** from user program. It works with JSR but if the OS is killed
  41.     ; *** JSRGEN is safer as it jumps in the allocated block
  42.     ; *** which is in the top of memory (MEMF_REVERSE) if kick > 38
  43.     ; *** fast memory is used when found, else chipmem is used
  44.     ; ***
  45.     ; *** I also included a short description of the routines
  46.     ; *** Please read the autodocs to get more details
  47.  
  48.     XREF    _GetSR            ; returns SR in D0
  49.     XREF    _GoECS            ; resets sprite aspect/playfield/goes 15KHz
  50.     XREF    _GetAttnFlags        ; gets system attnflags, at any time
  51.     XREF    _ResetDisplay        ; switches in PAL or NTSC if specified
  52.     XREF    _ResetSprites        ; resets sprite aspect
  53.     XREF    _BlackScreen        ; sets all color registers to black
  54.     XREF    _BlockFastMem        ; allocates all fastmem. Do not use :-)
  55.     XREF    _InitTrackDisk        ; returns a fake disk IO pointer in A1
  56.     XREF    _TrackLoadFast        ; simulates DoIO()
  57.     XREF    _TrackLoadHD        ; does not work. Do not use
  58.     XREF    _SetTDUnit        ; sets drive unit in D0 (for DoIO emulation)
  59.     XREF    _SetDisk        ; sets current disk (useful with HDLOAD)
  60.     XREF    _ReadRobSectorsFast    ; reads sectors, rob northen interface
  61.     XREF    _ReadFile        ; reads file, rob northen interface, from RAM or HD
  62.     XREF    _ReadFileFast        ; reads file, rob northen interface, from RAM only
  63.     XREF    _ReadFileHD        ; reads file, rob northen interface, from HD only
  64.     XREF    _WriteFileHD        ; writes file on HD during game
  65.     XREF    _DeleteFileHD        ; deletes file from HD during game (careful :-))
  66.     XREF    _PPDecrunch        ; decrunches PowerPacker files/blocks
  67.     XREF    _ATNDecrunch        ; decrunches ATN! files/blocks
  68.     XREF    _RNCDecrunch        ; decrunches RNC\01 files/blocks
  69.     XREF    _FungusDecrunch        ; decrunches Gremlins packer files/blocks
  70.     XREF    _RNCDecrunchEncrypted    ; decrunches RNC/01 encrypted files/blocks
  71.     XREF    _RNCLength        ; gives the length of decunched RNC file
  72.     XREF    _FlushCachesHard    ; flushes all caches
  73.     XREF    _WaitBlit        ; waits till blitter operation is complete
  74.     XREF    _BeamDelay        ; waits using $DFF006 register
  75.     XREF    _TestFile        ; check if a file is here
  76.     XREF    _PatchExceptions    ; install JOTD exception handler (done in SaveOSData)
  77.     XREF    _StrcmpAsm        ; compares 2 strings (null termintated). Not case sensitive
  78.     XREF    _StrcpyAsm        ; copies a string (null terminated)
  79.     XREF    _StrlenAsm        ; returns length of a string (ends with null)
  80.     XREF    _ToUpperAsm        ; converts a string in upper case
  81.     XREF    _WaitMouse        ; waits for LMB to be pressed. Colors fill the screen
  82.     XREF    _WaitMouseInterrupt    ; same thing but interrupts are enabled (HRTMon)
  83.     XREF    _GetDiskPointer        ; gets start of the specified diskfile (D0)
  84.     XREF    _CheckAGA        ; checks if the computer is AGA
  85.     XREF    _InGameExit        ; exits to WB from game
  86.     XREF    _SaveCustomRegs        ; saves important custom registers
  87.     XREF    _RestoreCustomRegs    ; restores them
  88.     XREF    _SaveCIARegs        ; saves all CIA info possible and LED state
  89.     XREF    _RestoreCIARegs        ; restores them
  90.     XREF    _InGameOSCall        ; call a user OS routine during the game
  91.     XREF    _SetExitRoutine        ; to call a user routine just before exit
  92.  
  93.     ; *** exported variables
  94.  
  95.     XREF    _GeneralPatchRoutines    ; HD Startup reloc routines
  96.     XREF    reloc_userstack        ; old user stack
  97.  
  98.     ; *** system
  99.  
  100.     XREF    _DosBase        ; dos.library base
  101.     XREF    _SysBase        ; exec.library base
  102.     XREF    _GfxBase        ; graphics.library base
  103.